package com.lzx.adx.report.enums;


public enum XiaoMiJgEnum {
    activate("activate", "APP_ACTIVE"),
    day1retention("retain_1day", "APP_RETENTION"),
    ;

    private String productCode;

    private String xiaomiCode;


    XiaoMiJgEnum(String productCode, String xiaomiCode) {
        this.productCode = productCode;
        this.xiaomiCode = xiaomiCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getXiaomiCode() {
        return xiaomiCode;
    }


    public static String getXMCode(String productCode) {
        XiaoMiJgEnum[] xiaoMiJgEnums = XiaoMiJgEnum.values();
        for (XiaoMiJgEnum xiaoMiJgEnum : xiaoMiJgEnums) {
            if (xiaoMiJgEnum.getProductCode().equals(productCode)) {
                return xiaoMiJgEnum.getXiaomiCode();
            }
        }
        return null;
    }

}
